#!/usr/bin/env python
# encoding: utf-8
# @author: Lin Han
# @contact: voldemort22@126.com
# @file: migrate_config.py
# @time: 2021/4/6 13:06
# @desc:
import os

import pymongo

from .views.configs import *
from .utils.utils import read_json

config = read_json("config.json")

myclient = pymongo.MongoClient(MONGO_URL)
mydb = myclient["do_center"]["config"]

mydb.insert_many(config)

